<?php
class Merchant_Model_Validate_HkemsValidate extends Merchant_Model_Validate_CommonValidate{

    public function validator(){
		$this->PublicValidator();
		$this->orderProduct();			//物品描述
		$this->consigneeRegion();		//收件人州
		$this->consigneeCity();
		$this->consigneeZip();			//邮编
		$this->consigneePhone();		//电话
        return $this->_error;
    }
    
    public function consigneeName(){}
    public function consigneeCountryId(){}
    public function shippingMethod(){}
	public function address(){}
	
	//电话
	public function consigneePhone(){
 		$regex = array('name' =>  '电话号码','value' => $this->consignee_phone,'regex' =>array('length[1,20]','noCharacter'));
		$error = Default_Service_Validator::Validator($regex);
		if(!empty($error)){
			$this->_error[] = $error ;
		}
	}
	
	//邮编
	public function consigneeZip(){
		$regex = array('name' => '邮政编号','value' => $this->consignee_zip,'regex' =>array('length[1,255]','noCharacter'));
		$error = Default_Service_Validator::Validator($regex);
		if(!empty($error)){
			$this->_error[] = $error ;
		}
	}
    
	
    
    
}
?>